package com.gxcc3.ygps.web.controller.system;

import com.gxcc3.ygps.common.core.controller.BaseController;
import com.gxcc3.ygps.common.core.domain.AjaxResult;
import com.gxcc3.ygps.common.core.domain.entity.SysCompanyUser;
import com.gxcc3.ygps.common.core.domain.model.LoginUser;
import com.gxcc3.ygps.framework.web.service.TokenService;
import com.gxcc3.ygps.system.service.ISysCompanyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 菜单信息
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/company/user")
public class SysCompanyUserController extends BaseController {



    @Autowired
    private ISysCompanyUserService companyUserService;

    @Autowired
    private TokenService tokenService;

    /**
     * 个人信息
     */
    @GetMapping("/info")
    public AjaxResult info()
    {
        return success(companyUserService.selectUserById(getUserId()));
    }
}
